import fetch, { BaseResponse } from '@/domain/authority/api';
import { ReqParam, ResData, ResDataSearch } from '../../types/longclass/resubmit';

/**
 * 长期班续报数据
 * @returns ResMenu
 */
export async function getResubmit(param: Partial<ReqParam>): Promise<BaseResponse<ResData>> {
  const { data } = await fetch.get<BaseResponse<ResData>>('/haichuan/assembly/long/resubmit', { ...param });
  return data;
}

/**
 * 长期班续报查询项
 * @returns ResMenu
 */
export async function getSelection(): Promise<BaseResponse<ResDataSearch>> {
  const { data } = await fetch.get<BaseResponse<ResDataSearch>>('/haichuan/assembly/long/resubmit/selection', {});
  return data;
}
